package oop.core.view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import oop.core.control.ControlConfigLoader;
import oop.core.view.ControllerConfigMenu;

/**
 * This loads from a file ControllerConfiguration that a user prviously saved. 
 * @author Alex
 *
 */
public class LoadControllerConfigListener implements ActionListener {

	private ControllerConfigMenu menu;
	
	public LoadControllerConfigListener(ControllerConfigMenu menu)
	{
		this.menu = menu;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		ControlConfigLoader loader = new ControlConfigLoader();
		loader.loadConfig(menu);
	}

}
